{include file="public/header" /}
<div class="index_html houtai">
    {include file="public/second_header" /}


<!-- 地下内容的开始 -->
<div class="backgroud_content new_huanzhe_record">
<!-- 左侧的开始 -->

    {include file="public/nav" /}
<!-- 左侧的结束 -->
<style>
    .backgroud_content .hou_jiluxiangqing .top_dec .btn-permission {
        line-height: 50px;
        border: 1px solid #00a29a;
        border-radius: 10px;
        text-align: center;
        display: inline-block;
        width: 160px;
        color: #00a29a;
        margin-left: 15px;
        font-size: 20px;
        float: right;
        background: #ffffff;
    }
</style>
<!-- 右侧的开始 -->
<div class="right_bar hou_jiluxiangqing">
    {include file="public/go_back" /}
    <div class="jcjl_detail">
        <div class="list_box">
            <div class="top_dec">
                <span class="theme">{$breadcrumb}</span>

                <a class="a-post btn-permission" data-url="record/del_record" post-msg="你确定要删除吗" style="border:none;"    post-url="{:url('record/del_record',array('id'=>$patientcase_info['id']))}">
                    <input type="button" class="btn-permission" value="删除">
                </a>


                <a href="{:url('record/edit_record',array('id'=>$patientcase_info['id']))}" class="add_new btn-permission" data-url="record/edit_record" >编辑</a>
            </div>
            <div class="content">
                <div class="msg">
                    <ul>
                        <li>
                            <span>检查编号：</span>
                            <em>{$patientcase_info['case_num']}</em>
                        </li>
                        <li>
                            <span>姓名：</span>
                            <em>{$patient_info['name']}</em>
                        </li>
                        <li>
                            <span>检查类型：</span>
                            <em>{$patientcase_info['patient_case_type']}</em>
                        </li>
                        <li>
                            <span>检查部位：</span>
                            <em>
                                {foreach name="$patientcase_info['patient_part_lat']" item="svo"}
                                {$svo['part'] ?? ''}/{$svo['lat']?? ''}
                                <br>
                                {/foreach}
                            </em>
                        </li>
                        <li>
                            <span>检查时间：</span>
                            <em>{$patientcase_info['check_time']|strtotime|date='Y-m-d',###}</em>
                        </li>
                        <li>
                            <span>检查结果：</span>
                            <em>{$patientcase_info['check_result']}</em>
                        </li>
                        <li class="dec">
                            <span>影像：</span>
                            <em>

                            </em>
                        </li>
                    </ul>
                </div>
            </div>
            <!--  列表的开始 -->
            <div class="list">
                <div class="data data_1">
                    <p class="theme">电子报告</p>
                    <div class="img_box">
                        {foreach $electronic_report_arr as $key=>$value}
                        <div class="pic_dec" onclick="layerDcm2(this)">
                            <img src="{$value}" alt="">
                        </div>
                        {/foreach}


                    </div>
                    <p class="number">共{:count($electronic_report_arr)}张</p>
                </div>
                <!-- 电子胶片的 开始-->
                <div class="data data_2">
                    <p class="theme">电子胶片</p>
                    <script type="text/javascript" src="__STATIC__/common/dwv/dwv-0.22.0.min.js"></script>
                    {if condition="$electronic_film_arr"}
                    {foreach $electronic_film_arr as $key=>$val}

                    <div class="pic_box">
                        <p class="mini_theme">{$val['report_name']}</p>
                        <div class="jiaopian_box">

                            {foreach name="$val['img']" item="svo" key="skey"}
                            <div class="pic_dec_1" onclick="layerDcm('{$key}','{$skey}','{$svo}');">

                                <div id="dwv_{$key}_{$skey}">
                                    <div class="layerContainer">
                                        <canvas class="imageLayer"></canvas>
                                    </div>
                                </div>
                            </div>
                            <script>

                                $(function() {
                                    n = "{$key}";
                                    k = "{$skey}";
                                    url = "{$svo}";
                                    init_dicom(n,k,url)
                                })

                            </script>          
                        {/foreach}
                        </div>
                        <p class="number">共{:count($val['img'])}张</p>
                    </div>
                    {/foreach}
                    {/if}
                </div>
                <!-- 电子胶片的 结束-->
                <!-- 录入医生 -->
                <div class="enter_doctor">
                    <p>录入医生：<span>{$patientcase_info['doctor_name']}</span></p>
                </div>
            </div>
            <!--  列表的开始 -->
        </div>
    </div>
</div>
<!-- 右侧的结束 -->
</div>
</div>

{include file="public/footer" /}
<script type="text/javascript">
	/* 删除上传的dcm文件 */
	$("body").on("click",".dcmDel",function(){
		$(this).parent().remove();
	})
	

	
</script>


